package cn.zhuama.org.domain;

import cn.zhuama.system.domain.Role;
import lombok.Data;

@Data
public class Employee{
    public static final Integer enable = 1;
    public static final Integer disable = 0;


    //员工ID
    private Long id;
    //员工名称
    private String username;
    //员工电话
    private String phone;
    //员工邮箱
    private String email;
    //员工盐值
    private String salt;
    //员工密码
    private String password;
    //员工年龄
    private Integer age;
    //员工状态：1启用 0禁用
    private Integer state = 1;
    //员工所属部门ID
    private Long department_id;

    private Department department;

    private Shop shop;
    //登录信息ID
    private Long logininfo_id;
    //店铺ID：为空=平台系统管理员，不为空=店铺管理员
    private Long shop_id;
    //搞个role ID
    private Long role_id;

    private Role role;

//    public Employee(Long id, String username, String phone, String email, Integer age, Integer state, Long department_id) {
//        this.id = id;
//        this.username = username;
//        this.phone = phone;
//        this.email = email;
//        this.age = age;
//        this.state = state;
//        this.department_id = department_id;
//    }

}
